package com.warrantyhotel.android.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.warrantyhotel.android.ui.WarrantyApplication;

public class CustomTextView extends TextView {

	private WarrantyApplication warrantyApplication;

	public CustomTextView(Context context) {
		super(context);
		warrantyApplication = (WarrantyApplication) context.getApplicationContext();
		this.setTypeface(warrantyApplication.getTypefaceHelvetica());

	}

	public CustomTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		warrantyApplication = (WarrantyApplication) context.getApplicationContext();
		this.setTypeface(warrantyApplication.getTypefaceHelvetica());

	}

	public CustomTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		warrantyApplication = (WarrantyApplication) context.getApplicationContext();
		this.setTypeface(warrantyApplication.getTypefaceHelvetica());
	}

}
